from django.contrib import admin
from web11 import models
# Register your models here.
class BookAdmin(admin.ModelAdmin):
    list_display = ('id', 'name', 'publisher', 'publisher_date',)
    search_fields = ('name','publisher')
    list_per_page = 7
    list_editable = ('name','publisher',)
    list_filter = ('name','publisher','author',)
    list_select_related = ('publisher',)


admin.site.register(models.Author)
admin.site.register(models.Book,BookAdmin)
admin.site.register(models.Publisher)
